import { getString, setString, removeItem } from './localStore'

const TokenKey = 'MALL-AUTH-TOKEN-'

export function getToken(): string | null {
  return getString(TokenKey)
}

export function setToken(token: string): void {
  setString(TokenKey, token)
}

export function removeToken(): void {
  removeItem(TokenKey)
}
